import React from 'react';
import './index.scss';
import { LikeOutlined , MessageOutlined } from '@ant-design/icons';
interface userType {
    user:replyType
}

interface replyType {
    name: string,
    url: string,
    time: string,
    content: string
  }

const CommentCard: React.FC<userType> = ({user}) => {
    return (
        <div className="commentCard">
            <div className='commentUser'>
                <img src={user?.url} alt="" />
                <div style={{width:'100px' , height: '40px'}}>
                    <div style={{height:'20px' , width:'100%' , display:'flex' , alignItems:'center' , color:'#775e45'}}>{user?.name}</div>
                    <div style={{height:'20px' , width:'100%' , display:'flex' , alignItems:'center' , color:'#948888'}}>{user?.time}</div>
                </div>
            </div>
            <div className='commentContent'>
                <p>{user?.content}</p>
                <div className='like'>
                <LikeOutlined style={{marginRight:'5px'}}/>赞
                <MessageOutlined style={{marginRight:'5px' , marginLeft:'10px'}}/>回复
                </div>
            </div>
        </div>
    )
};

export default CommentCard;